#cmake 版本
cmake_minimum_required(VERSION 2.6)
# 添加 c++ 11 标准支持
set( CMAKE_CXX_FLAGS "-std=c++11" )
#工程名
project(orb)

set( CMAKE_BUILD_TYPE "Debug" )


add_definitions("-DENABLE_SSE")
set(CMAKE_CXX_FLAGS "-std=c++11 -O2 ${SSE_FLAGS} -msse4")
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)


#寻找opencv库
find_package(OpenCV 3 REQUIRED)
#添加opencv头文件
include_directories(
	include
	${OpenCV_INCLUDE_DIRS})


add_executable(main src/main.cpp)
target_link_libraries(main ${OpenCV_LIBS})

add_executable(demoImgUndistort src/demoImgUndistort.cpp)
target_link_libraries(demoImgUndistort ${OpenCV_LIBS})




